﻿<UserControl x:Class="ViCode_LeVi.Controls.VMTabAnalysis_Tab1_Win" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:vmcontrol="clr-namespace:ViCode_LeVi.Controls"
             xmlns:vmcontrolEnum="clr-namespace:ViCode_LeVi.Controls.EnumsControl"
     xmlns:vmcontrolChart="clr-namespace:ViCode_LeVi.Controls.Charts"           
             xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit">
    <UserControl.Resources>
        <vmcontrol:VMTabAnalysis_Tab1_Item_Color_Converter x:Key="VMTabAnalysis_Tab1_Item_Color_Converter"/>
    </UserControl.Resources>
    <vmcontrol:VMRootControl>
        <DockPanel LastChildFill="True">
            <GroupBox Margin="2">
                <GroupBox.Header>
                    <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Evaluation_Chart_Option_Text"/>
                </GroupBox.Header>
                <GroupBox.Content>
                    <StackPanel Name="StackPanel_Config">
                        <GroupBox Margin="2">
                            <GroupBox.Header>
                                <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Evaluation_Chart_ColumnDisplay_Text"/>
                            </GroupBox.Header>
                            <GroupBox.Content>
                                <ComboBox Name="ComboBox_ChartLabelMode" Margin="2"/>
                            </GroupBox.Content>
                        </GroupBox>
                        <vmcontrolEnum:EnumControl_TaskType x:Name="EnumControl_TaskType_Tab1" />
                        <vmcontrolEnum:EnumControl_ImportanceMode x:Name="EnumControl_ImportanceMode_Tab1" />

                        <GroupBox Margin="2">
                            <GroupBox.Header>
                                    <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Evaluation_Chart_Legend_Text"/>
                            </GroupBox.Header>
                            <GroupBox.Content>
                                <StackPanel>
                                    <ComboBox Name="ComboBox_ChartLegendMode" Margin="2"/>
                                    <CheckBox Name="CheckBox_LegendWithPercent"  Margin="2">
                                        <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Evaluation_Chart_LegendWithPercent_Text"/>
                                    </CheckBox>
                                </StackPanel>
                            </GroupBox.Content>
                        </GroupBox>
                        <StackPanel>
                            <Button Content="PDF" Margin="2" Click="Button_Click" />
                        </StackPanel>
                    </StackPanel>
                </GroupBox.Content>
            </GroupBox>
            <DockPanel>
                <Grid DockPanel.Dock="Bottom">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Analysis_Interpretation_Text" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="2"/>
                    <vmcontrol:VMTextBox_MultiLine Grid.Row="1" MinLines="3" Text="{Binding Interpretation1}" Margin="2" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
                </Grid>
                <GroupBox  Margin="2">
                    <GroupBox.Header>
                        <vmcontrol:VMTextBlockExt_ControlTextInfoInData TextPath="Evaluation_Chart_DisplayChart_Text"/>
                    </GroupBox.Header>
                    <GroupBox.Content>
                        <Grid>
                            <WindowsFormsHost Grid.Row="1" HorizontalAlignment="Stretch" Margin="2" Name="windowsFormsHost1" VerticalAlignment="Stretch" >
                                <vmcontrolChart:BarChartImportance x:Name="BarChartImportance" BackColor="Red"/>
                            </WindowsFormsHost>
                        </Grid>
                    </GroupBox.Content>
                </GroupBox>
            </DockPanel>
        </DockPanel>
    </vmcontrol:VMRootControl>
</UserControl>
